<?php

/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Cmspage
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */

return array (// Package -------------------------------------------------------------------
'package' => array ('type' => 'module', 'name' => 'cmspage', 'version' => '4.1.1', 'path' => 'application/modules/Cmspage', 'repository' => '', 'meta' => array ('title' => 'CMS Page', 'description' => 'This plugin allows your members or admins to create additional content pages for your social networking site.', 'author' => 'Radcodes Developments' ), 'actions' => array ('install', 'upgrade', 'refresh', 'enable', 'disable' ), 'callback' => array ('path' => 'application/modules/Cmspage/settings/install.php', 'class' => 'Cmspage_Installer' ), 'dependencies' => array ('radcodes' => array ('type' => 'module', 'name' => 'radcodes', 'minVersion' => '4.1.1' ) ), 'directories' => array ('application/modules/Cmspage' ), 'files' => array ('application/languages/en/cmspage.csv' ) ), // Hooks ---------------------------------------------------------------------
'hooks' => array (array ('event' => 'onStatistics', 'resource' => 'Cmspage_Plugin_Core' ), array ('event' => 'onUserDeleteBefore', 'resource' => 'Cmspage_Plugin_Core' ) ), // Items ---------------------------------------------------------------------
'items' => array ('cmspage', 'cmspage_album', 'cmspage_photo', 'cmspage_category' ), // Routes --------------------------------------------------------------------
'routes' => array ('cmspage_extended' => array ('route' => 'cmspages/:controller/:action/*', 'defaults' => array ('module' => 'cmspage', 'controller' => 'index', 'action' => 'index' ), 'reqs' => array ('controller' => '\D+', 'action' => '\D+' ) ), 'cmspage_specific' => array ('route' => 'cmspages/:action/:cmspage_id/*', 'defaults' => array ('module' => 'cmspage', 'controller' => 'index', 'action' => 'index' ), 'reqs' => array ('action' => '(edit|delete|publish|success)', 'cmspage_id' => '\d+' ) ), 'cmspage_general' => array ('route' => 'cmspages/:action/*', 'defaults' => array ('module' => 'cmspage', 'controller' => 'index', 'action' => 'browse' ), 'reqs' => array ('action' => '(browse|create|manage)' ) ), 

'cmspage_profile' => array ('route' => 'cmspage/:cmspage_id/:slug', 'defaults' => array ('module' => 'cmspage', 'controller' => 'index', 'action' => 'view', 'slug' => '' ), 'reqs' => array ('cmspage_id' => '\d+' ) ), 'cmspage_preview' => array ('route' => 'cmspage/preview/:cmspage_id/*', 'defaults' => array ('module' => 'cmspage', 'controller' => 'index', 'action' => 'preview' ), 'reqs' => array ('cmspage_id' => '\d+' ) ), 'cmspage_home' => array ('route' => 'cmspages', 'defaults' => array ('module' => 'cmspage', 'controller' => 'index', 'action' => 'index' ) ), 'cmspage_browse' => array ('route' => 'cmspages/browse/*', 'defaults' => array ('module' => 'cmspage', 'controller' => 'index', 'action' => 'browse' ) ), 'cmspage_manage' => array ('route' => 'cmspages/manage/*', 'defaults' => array ('module' => 'cmspage', 'controller' => 'index', 'action' => 'manage' ) ), 'cmspage_create' => array ('route' => 'cmspages/create', 'defaults' => array ('module' => 'cmspage', 'controller' => 'index', 'action' => 'create' ) ), 'cmspage_edit' => array ('route' => 'cmspages/edit/:cmspage_id', 'defaults' => array ('module' => 'cmspage', 'controller' => 'index', 'action' => 'edit' ) ), 'cmspage_delete' => array ('route' => 'cmspages/delete/:cmspage_id', 'defaults' => array ('module' => 'cmspage', 'controller' => 'index', 'action' => 'delete' ) ), 

'cmspage_success' => array ('route' => 'cmspages/success/:cmspage_id', 'defaults' => array ('module' => 'cmspage', 'controller' => 'index', 'action' => 'success' ) ), 'cmspage_admin_manage_level' => array ('route' => 'admin/cmspage/level/:level_id', 'defaults' => array ('module' => 'cmspage', 'controller' => 'admin-level', 'action' => 'index', 'level_id' => 1 ) ) )

 );
